<form enctype="multipart/form-data" method="POST" action="/save/stock/">
    <input id="stock_id" type="hidden" name="stock_id" value=<?= $this->form->getElement()->getId() ?>  />
    <input id="type_form" type="hidden" name="type_form" value=<?= $this->form->getType() ?> />
    <input id="type_form" type="hidden" name="photo" value=<?= $this->form->getElement()->getPhoto() ?> />
    <span>Размер фотографии должен быть 420x180.</span>
    <div class="form-data">
        <label for="photo">Фотография:</label>
        <input id="photo" type="file" name="photo" />
    </div>
    <div class="form-data">
        <label for="title">Заголовок:</label>
        <input id="title" type="text" name="title" value="<?= $this->form->getElement()->getTitle() ?>" />
    </div>
    <div class="form-data">
        <label for="desc">Описание:</label>
        <textarea id="desc" name="desc"><?= $this->form->getElement()->getDescription() ?></textarea>
    </div>
    <div class="form-data">
        <label for="is_active">Включен:</label>
        <input id="is_active" name="is_active" type="checkbox" <?if ($this->form->getElement()->getIsActive()):?>checked <? endif; ?> >
    </div>
    <div class="form-data">
        <input type="submit" name="submit" value="Сохранить">
    </div>
</form>